package siau.android.base

import android.content.Context
import android.content.Intent
import androidx.activity.result.contract.ActivityResultContract

class TakePhotoActivityResultContact : ActivityResultContract<Intent, TakePhotoActivityResultContactResultBean>() {
    override fun createIntent(context: Context, input: Intent): Intent {
        return input
    }

    override fun parseResult(resultCode: Int, intent: Intent?): TakePhotoActivityResultContactResultBean {
        return TakePhotoActivityResultContactResultBean(resultCode, intent)
    }
}